const express=require('express');
const router=express.Router();
const pool=require('../pool.js')
module.exports=router;
//导航接口
//测试地址:http://127.0.0.1:8080/v1/index.php/nav
router.get('/nav',(req,res)=>{
    pool.query('select * from nav',(err,result)=>{
        if(err) throw err;
        res.send(result)
	    //console.log(result)
    })
})
